﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 判断文件夹是否存在
{
    class Program
    {
        static void Main(string[] args)
        {
            DirectoryInfo directory = new DirectoryInfo("123");
            if (!directory.Exists)
                Console.WriteLine("文件夹不存在！");
            else
                Console.WriteLine("文件夹已存在！");
            Console.ReadKey();
        }
    }
}
